package org.jeecg.modules.xl.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.xl.order.mapper.XlCustomerOrdeMapper;
import org.jeecg.modules.xl.order.vo.ProductSheet;
import org.jeecg.modules.xl.product.entity.XlProductInfo;
import org.jeecg.modules.xl.product.entity.XlProductPics;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: xl_product_info
 * @Author: jeecg-boot
 * @Date:   2024-10-18
 * @Version: V1.0
 */
public interface IXlProductInfoService extends IService<XlProductInfo> {

	/**
	 * 添加一对多
	 *
	 * @param xlProductInfo
	 * @param xlProductPicsList
	 */
	public void saveMain(XlProductInfo xlProductInfo,List<XlProductPics> xlProductPicsList) ;
	
	/**
	 * 修改一对多
	 *
   * @param xlProductInfo
   * @param xlProductPicsList
	 */
	public void updateMain(XlProductInfo xlProductInfo,List<XlProductPics> xlProductPicsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public List<ProductSheet> getProductListForExport();

	public List<ProductSheet> getProductWithPriceListByStoreLevel(String priceLevel);

	/**
	 * @see XlCustomerOrdeMapper#selectOrdersAfterAmount(String)
	 * @param upccodes
	 * @return
	 */
	public Map<String,Map<String, String>> getCoverCustomer(String upccodes);

	public XlProductInfo getProductInfoCacheable(String upc_code);

}
